﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dbPoll_Application.ViewModels.SelectCompareWithViewModel>" %>
<%@ Import Namespace="dbPoll_Application.Models"%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Select Comparison Question
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script src="../../Scripts/Poll-SelectCompareWith.js" type="text/javascript"></script>
    <div class="pageHeadingContainer">
        <h2 class="pageHeading">Select Comparison Question</h2>
    </div>
    <div id="contentContainer">
        <%= Html.HiddenFor(m => m.question.question.type)%>
        <%= Html.HiddenFor(m => m.question.question.questionID)%>
        <%= Html.HiddenFor(m => m.question.question.questionNumber)%>
        <%= Html.HiddenFor(m => m.question.poll.pollID)%>
        <%= Html.HiddenFor(m => m.question.poll.name)%>
        <div id="filterUsers"><label for="filter">Filter</label><input type="text" name="filter" id="filter" value="Enter a keyword to filter the list..." /></div>
        <table class="selectComparisonQuestion">
        <tr>
            <th>Poll</th>
            <th>Question</th>
            <th id="btn_selectComparisonQuestion"></th>
        </tr>
        <% foreach (var question in Model.comparableQuestions)
           { %>
           <tr>
               <td><%= question.poll.name %></td>
               <td><%= question.question.question %></td>
               <td><input type="button" value="Select" id="<%= question.question.questionID %>" class="selectQuestion" /></td>
           </tr>
        <% } %>
        </table>
    </div>

</asp:Content>
